package com.openlogic.common.core.exception;

public class IllegalExpressionException extends Exception {

	private static final long serialVersionUID = 5578056932378059592L;

	/**
	 * 错误标识
	 */
	private String errorTokenText;
	
	/**
	 * 错误类型
	 */
	private String errorType;
	
	/**
	 * 错误位置
	 */
	private int errorPosition = -1;
	
	public IllegalExpressionException(String msg, String errorTokenText, String errorType,
			int errorPosition) {
		super(msg);
		this.errorTokenText = errorTokenText;
		this.errorType = errorType;
		this.errorPosition = errorPosition;
	}
	
	public IllegalExpressionException(String errorTokenText, String errorType,
			int errorPosition) {
		super();
		this.errorTokenText = errorTokenText;
		this.errorType = errorType;
		this.errorPosition = errorPosition;
	}

	public String getErrorTokenText() {
		return errorTokenText;
	}

	public void setErrorTokenText(String errorTokenText) {
		this.errorTokenText = errorTokenText;
	}

	public String getErrorType() {
		return errorType;
	}

	public void setErrorType(String errorType) {
		this.errorType = errorType;
	}

	public int getErrorPosition() {
		return errorPosition;
	}

	public void setErrorPosition(int errorPosition) {
		this.errorPosition = errorPosition;
	}
	
}
